<?php
namespace Reseller\Controller;
use Think\Controller;
class StatementController extends IndexController {
	
public function _initialize(){
	parent::_initialize();	
 	$this->model="affrecord"; //表名
 	$this->key="ar_id";//排序键		 
 	$this->title_index=L("statement");//选项卡标题	
}

public function index(){
	$mist_arr=array("ar_remark"=>I("ar_remark"));
	$accute_arr=array('ar_amount'=>I('ar_amount'),'ar_type'=>I('ar_type'));
	$cookie_arr=array();	
	$con=searchCon($mist_arr,$accute_arr,$cookie_arr);
	if(I('st_time_start') && I('st_time_end')){
		$con['ar_time']=array("between",array(I('st_time_start'),I('st_time_end')));
	}
	$con['ar_aff_id']=$this->reseller_info['aff_id'];	
	parent::home($con);
}	

	
}

